/**
 * 
 */
package ro.dta.idbi.model.dynamicpattern;

/**
 * Edge class, used to represent a edge in a graph
 * 
 * @author Tudor Dobrila
 * 
 */
class Edge {

	/**
	 * Source vertex
	 */
	private Vertex source;

	/**
	 * Target vertex
	 */
	private Vertex target;

	/**
	 * Edge class constructor
	 * 
	 * @param source
	 *            Source vertex
	 * @param target
	 *            Target vertex
	 */
	public Edge(Vertex source, Vertex target) {
		this.source = source;
		this.target = target;
	}

	/**
	 * Get the source vertex
	 * 
	 * @return Source vertex
	 */
	public Vertex getSource() {
		return source;
	}

	/**
	 * Get the target vertex
	 * 
	 * @return Target vertex
	 */
	public Vertex getTarget() {
		return target;
	}
}
